package com.yuyuan.api.client;

import com.yuyuan.api.domain.IconDTOC;
import com.yuyuan.api.domain.UserDTOC;
import com.yuyuan.common.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/6/23
 */
@FeignClient("user-service")
public interface UserClient {

    @GetMapping("/user/client/selectById/{userId}")
    UserDTOC selectById(@PathVariable Long userId);

    @PutMapping("/user/client/updateIcon")
    Result updateIcon(@RequestBody IconDTOC iconDTOC);

    @PutMapping("/user/client/addFollowee/{userId}")
    void addFollowee(@PathVariable Long userId);

    @PutMapping("/user/client/addFans/{userId}")
    void addFans(@PathVariable Long userId);

    @PutMapping("/user/client/subFollowee/{userId}")
    void subFollowee(@PathVariable Long userId);

    @PutMapping("/user/client/subFans/{userId}")
    void subFans(@PathVariable Long userId);
}
